package com.wabbei.friendcenter.action;

import java.io.UnsupportedEncodingException;
import java.util.Date;

import javax.servlet.ServletContext;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.webbei.friendcenter.service.MyFriendCenter;

public class SendReportAction {
	//已经由SendReportByAjAxAction.java这个ACTION代替，这个ACTION已经没有用
		/*private MyFriendCenter friservice;
		
		private String beReportName;// bereportName
		private String reprotContent;
		private Date reportTime;
		private String reportName; 
		private int commentId;
		private String uname;
		
		public String getUname() {
			return uname;
		}

		public void setUname(String uname) {
			this.uname = uname;
		}

		
		public int getCommentId() {
			return commentId;
		}

		public void setCommentId(int commentId) {
			this.commentId = commentId;
		}

		public String getReportName() {
			return reportName;
		}

		public void setReportName(String reportName) {
			this.reportName = reportName;
		}

		
		public String getReprotContent() {
			return reprotContent;
		}

		public void setReprotContent(String reprotContent) {
			this.reprotContent = reprotContent;
		}

		
		public String getBeReportName() {
			return beReportName;
		}

		public void setBeReportName(String beReportName) {
			this.beReportName = beReportName;
		}

		public Date getReportTime() {
			return reportTime;
		}

		public void setReportTime(Date reportTime) {
			this.reportTime = reportTime;
		}

		public MyFriendCenter getFriservice() {
			return friservice;
		}

		public void setFriservice(MyFriendCenter friservice) {
			this.friservice = friservice;
		}

		public String execute(){
			reportTime=new Date();
			//reportName=ActionContext.getContext().getSession().get("");
			reportName="chenhao";
			System.out.println(reprotContent+":report");
			friservice.insertNewReport(reportName,beReportName,reprotContent,reportTime,commentId);
			return "success";
		}*/
		
}
